package cn.yuxiaoyuan.article.service;

import cn.yuxiaoyuan.article.bo.ArticleTypeCountBo;
import cn.yuxiaoyuan.article.domain.Article;
import cn.yuxiaoyuan.article.domain.ArticleType;
import cn.yuxiaoyuan.article.query.ArticleQuery;
import cn.yuxiaoyuan.article.query.ArticleTypeQuery;
import cn.yuxiaoyuan.base.service.BaseService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ArticleService extends BaseService<Article> {
    List<Article> queryPage(ArticleQuery query);

    List<Article> selectPage(ArticleQuery articleQuery);

    Integer star(HttpServletRequest request,Long id);

    List<ArticleTypeCountBo> articleTypeCount();

    Map<Integer, List<Article>> archives();
}
